package com.rzn.reading.service.impl;

import com.rzn.reading.mapper.EchartsDataMapper;
import com.rzn.reading.model.dto.echarts.LikeCategoryDto;
import com.rzn.reading.model.dto.echarts.LiteratureCategoryDto;
import com.rzn.reading.model.dto.echarts.ScoreDto;
import com.rzn.reading.service.EchartsDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EchartsDataImpl implements EchartsDataService {
  @Autowired
  private EchartsDataMapper echartsDataMapper;

  @Override
  public List<LiteratureCategoryDto> queryLiteratureCategory() {
    return echartsDataMapper.queryLiteratureCategory();
  }

  @Override
  public List<LikeCategoryDto> queryLikeCategory() {
    return echartsDataMapper.queryLikeCategory();
  }

  @Override
  public List<ScoreDto> queryScore() {
    return echartsDataMapper.queryScore();
  }
}
